﻿#include "lg_choosedatamanager.h"

LG_ChooseDataManager::LG_ChooseDataManager(QObject *parent)
    : QObject{parent}
{}

bool LG_ChooseDataManager::isExistTable()
{
    LG_ChooseDB Db;

    QString sql = "SELECT ID, XCNAME,XCVALUE FROM LG_ChooseDB;";

    bool ok = Db.execSql(sql);
    if(!ok)
    {
        qDebug()<<"Cpp:不存在数据库表 LG_ChooseDB";

        sql = "CREATE TABLE LG_ChooseDB (ID INTEGER PRIMARY KEY ,XCNAME TEXT,XCVALUE TEXT);";
        qDebug()<<"Cpp:创建数据表 LG_ChooseDB sql:"<<sql;
        bool ok = Db.execSql(sql);
        if(ok)
        {
            qDebug()<<"Cpp:创建数据表 LG_ChooseDB 成功";

            for(int i = 0 ; i < 20 ; i++)
            {
                addData();
            }
        }
        else
        {
            qDebug()<<"Cpp:创建数据表 LG_ChooseDB 失败";
            return false;
        }
    }
    else
    {
        getAllParameterFromSQL();
    }

    return true;
}

void LG_ChooseDataManager::getAllParameterFromSQL()
{
    LG_ChooseDB Db;

    QSharedPointer<QSqlQuery> result;

    QString sql = "SELECT ID ,XCNAME,XCVALUE FROM LG_ChooseDB;";

    QString name;
    QString height;

    result.reset(Db.execSql_result(sql));
    if(!result.isNull())
    {
        while(result->next())
        {

            int id = result->value(0).toInt();

            switch(id)
            {
            case 1:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name01(name);
                setXc_Height01(height);
                break;
            case 2 :
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name02(name);
                setXc_Height02(height);
                break;
            case 3:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name03(name);
                setXc_Height03(height);
                break;
            case 4:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name04(name);
                setXc_Height04(height);
                break;
            case 5:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name05(name);
                setXc_Height05(height);
                break;
            case 6:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name06(name);
                setXc_Height06(height);
                break;
            case 7:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name07(name);
                setXc_Height07(height);
                break;
            case 8:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name08(name);
                setXc_Height08(height);
                break;
            case 9:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name09(name);
                setXc_Height09(height);
                break;
            case 10:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name10(name);
                setXc_Height10(height);
                break;
            case 11:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name11(name);
                setXc_Height11(height);
                break;
            case 12:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name12(name);
                setXc_Height12(height);
                break;
            case 13:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name13(name);
                setXc_Height13(height);
                break;
            case 14:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name14(name);
                setXc_Height14(height);
                break;
            case 15:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name15(name);
                setXc_Height15(height);
                break;
            case 16:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name16(name);
                setXc_Height16(height);
                break;
            case 17:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name17(name);
                setXc_Height17(height);
                break;
            case 18:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name18(name);
                setXc_Height18(height);
                break;
            case 19:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name19(name);
                setXc_Height19(height);
                break;
            case 20:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name20(name);
                setXc_Height20(height);
                break;
            case 21:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name21(name);
                setXc_Height21(height);
                break;
            case 22:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name22(name);
                setXc_Height22(height);
                break;
            case 23:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name23(name);
                setXc_Height23(height);
                break;
            case 24:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name24(name);
                setXc_Height24(height);
                break;
            case 25:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name25(name);
                setXc_Height25(height);
                break;
            case 26:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name26(name);
                setXc_Height26(height);
                break;
            case 27:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name27(name);
                setXc_Height27(height);
                break;
            case 28:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name28(name);
                setXc_Height28(height);
                break;
            case 29:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name29(name);
                setXc_Height29(height);
                break;
            case 30:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name30(name);
                setXc_Height30(height);
                break;
            case 31:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name31(name);
                setXc_Height31(height);
                break;
            case 32:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name32(name);
                setXc_Height32(height);
                break;
            case 33:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name33(name);
                setXc_Height33(height);
                break;
            case 34:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name34(name);
                setXc_Height34(height);
                break;
            case 35:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name35(name);
                setXc_Height35(height);
                break;
            case 36:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name36(name);
                setXc_Height36(height);
                break;
            case 37:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name37(name);
                setXc_Height37(height);
                break;
            case 38:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name38(name);
                setXc_Height38(height);
                break;
            case 39:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name39(name);
                setXc_Height39(height);
                break;
            case 40:
                name = result->value(1).toString();
                height = result->value(2).toString();
                setXc_Name40(name);
                setXc_Height40(height);
                break;
            default:
                break;
            }

        }


        result.clear();
    }
}

void LG_ChooseDataManager::addData()
{
    LG_ChooseDB Db;

    QString sql = "INSERT INTO LG_ChooseDB (XCNAME , XCVALUE) VALUES('','')";

    qDebug()<<"Cpp:插入数据 sql:"<<sql;

    bool ok = Db.execSql(sql);
    if(!ok)
    {
        qDebug()<<"Cpp:添加数据失败";
    }
    else
    {
        qDebug()<<"Cpp:添加数据成功";
        getAllParameterFromSQL();
    }
}

void LG_ChooseDataManager::saveData(int id, QString key, QString value)
{
    LG_ChooseDB Db;

    QString sql = "UPDATE LG_ChooseDB SET " + key + "='"+ value +"' WHERE ID = "+QString::number(id);

    qDebug()<<"Cpp:更新数据 sql:"<<sql;

    bool ok = Db.execSql(sql);

    if(!ok)
    {
        qDebug()<<"Cpp:更新数据失败";
    }
    else
    {
        qDebug()<<"Cpp:更新数据成功";
    }
}

QString LG_ChooseDataManager::xc_Name01() const
{
    return m_xc_Name01;
}

void LG_ChooseDataManager::setXc_Name01(const QString &newXc_Name01)
{
    if (m_xc_Name01 == newXc_Name01)
        return;
    m_xc_Name01 = newXc_Name01;
    emit xc_Name01Changed();
}

QString LG_ChooseDataManager::xc_Name02() const
{
    return m_xc_Name02;
}

void LG_ChooseDataManager::setXc_Name02(const QString &newXc_Name02)
{
    if (m_xc_Name02 == newXc_Name02)
        return;
    m_xc_Name02 = newXc_Name02;
    emit xc_Name02Changed();
}

QString LG_ChooseDataManager::xc_Name03() const
{
    return m_xc_Name03;
}

void LG_ChooseDataManager::setXc_Name03(const QString &newXc_Name03)
{
    if (m_xc_Name03 == newXc_Name03)
        return;
    m_xc_Name03 = newXc_Name03;
    emit xc_Name03Changed();
}

QString LG_ChooseDataManager::xc_Name04() const
{
    return m_xc_Name04;
}

void LG_ChooseDataManager::setXc_Name04(const QString &newXc_Name04)
{
    if (m_xc_Name04 == newXc_Name04)
        return;
    m_xc_Name04 = newXc_Name04;
    emit xc_Name04Changed();
}

QString LG_ChooseDataManager::xc_Name05() const
{
    return m_xc_Name05;
}

void LG_ChooseDataManager::setXc_Name05(const QString &newXc_Name05)
{
    if (m_xc_Name05 == newXc_Name05)
        return;
    m_xc_Name05 = newXc_Name05;
    emit xc_Name05Changed();
}

QString LG_ChooseDataManager::xc_Name06() const
{
    return m_xc_Name06;
}

void LG_ChooseDataManager::setXc_Name06(const QString &newXc_Name06)
{
    if (m_xc_Name06 == newXc_Name06)
        return;
    m_xc_Name06 = newXc_Name06;
    emit xc_Name06Changed();
}

QString LG_ChooseDataManager::xc_Name07() const
{
    return m_xc_Name07;
}

void LG_ChooseDataManager::setXc_Name07(const QString &newXc_Name07)
{
    if (m_xc_Name07 == newXc_Name07)
        return;
    m_xc_Name07 = newXc_Name07;
    emit xc_Name07Changed();
}

QString LG_ChooseDataManager::xc_Name08() const
{
    return m_xc_Name08;
}

void LG_ChooseDataManager::setXc_Name08(const QString &newXc_Name08)
{
    if (m_xc_Name08 == newXc_Name08)
        return;
    m_xc_Name08 = newXc_Name08;
    emit xc_Name08Changed();
}

QString LG_ChooseDataManager::xc_Name09() const
{
    return m_xc_Name09;
}

void LG_ChooseDataManager::setXc_Name09(const QString &newXc_Name09)
{
    if (m_xc_Name09 == newXc_Name09)
        return;
    m_xc_Name09 = newXc_Name09;
    emit xc_Name09Changed();
}

QString LG_ChooseDataManager::xc_Name10() const
{
    return m_xc_Name10;
}

void LG_ChooseDataManager::setXc_Name10(const QString &newXc_Name10)
{
    if (m_xc_Name10 == newXc_Name10)
        return;
    m_xc_Name10 = newXc_Name10;
    emit xc_Name10Changed();
}

QString LG_ChooseDataManager::xc_Name11() const
{
    return m_xc_Name11;
}

void LG_ChooseDataManager::setXc_Name11(const QString &newXc_Name11)
{
    if (m_xc_Name11 == newXc_Name11)
        return;
    m_xc_Name11 = newXc_Name11;
    emit xc_Name11Changed();
}

QString LG_ChooseDataManager::xc_Name12() const
{
    return m_xc_Name12;
}

void LG_ChooseDataManager::setXc_Name12(const QString &newXc_Name12)
{
    if (m_xc_Name12 == newXc_Name12)
        return;
    m_xc_Name12 = newXc_Name12;
    emit xc_Name12Changed();
}

QString LG_ChooseDataManager::xc_Name13() const
{
    return m_xc_Name13;
}

void LG_ChooseDataManager::setXc_Name13(const QString &newXc_Name13)
{
    if (m_xc_Name13 == newXc_Name13)
        return;
    m_xc_Name13 = newXc_Name13;
    emit xc_Name13Changed();
}

QString LG_ChooseDataManager::xc_Name14() const
{
    return m_xc_Name14;
}

void LG_ChooseDataManager::setXc_Name14(const QString &newXc_Name14)
{
    if (m_xc_Name14 == newXc_Name14)
        return;
    m_xc_Name14 = newXc_Name14;
    emit xc_Name14Changed();
}

QString LG_ChooseDataManager::xc_Name15() const
{
    return m_xc_Name15;
}

void LG_ChooseDataManager::setXc_Name15(const QString &newXc_Name15)
{
    if (m_xc_Name15 == newXc_Name15)
        return;
    m_xc_Name15 = newXc_Name15;
    emit xc_Name15Changed();
}

QString LG_ChooseDataManager::xc_Name16() const
{
    return m_xc_Name16;
}

void LG_ChooseDataManager::setXc_Name16(const QString &newXc_Name16)
{
    if (m_xc_Name16 == newXc_Name16)
        return;
    m_xc_Name16 = newXc_Name16;
    emit xc_Name16Changed();
}

QString LG_ChooseDataManager::xc_Name17() const
{
    return m_xc_Name17;
}

void LG_ChooseDataManager::setXc_Name17(const QString &newXc_Name17)
{
    if (m_xc_Name17 == newXc_Name17)
        return;
    m_xc_Name17 = newXc_Name17;
    emit xc_Name17Changed();
}

QString LG_ChooseDataManager::xc_Name18() const
{
    return m_xc_Name18;
}

void LG_ChooseDataManager::setXc_Name18(const QString &newXc_Name18)
{
    if (m_xc_Name18 == newXc_Name18)
        return;
    m_xc_Name18 = newXc_Name18;
    emit xc_Name18Changed();
}

QString LG_ChooseDataManager::xc_Name19() const
{
    return m_xc_Name19;
}

void LG_ChooseDataManager::setXc_Name19(const QString &newXc_Name19)
{
    if (m_xc_Name19 == newXc_Name19)
        return;
    m_xc_Name19 = newXc_Name19;
    emit xc_Name19Changed();
}

QString LG_ChooseDataManager::xc_Name20() const
{
    return m_xc_Name20;
}

void LG_ChooseDataManager::setXc_Name20(const QString &newXc_Name20)
{
    if (m_xc_Name20 == newXc_Name20)
        return;
    m_xc_Name20 = newXc_Name20;
    emit xc_Name20Changed();
}

QString LG_ChooseDataManager::xc_Name21() const
{
    return m_xc_Name21;
}

void LG_ChooseDataManager::setXc_Name21(const QString &newXc_Name21)
{
    if (m_xc_Name21 == newXc_Name21)
        return;
    m_xc_Name21 = newXc_Name21;
    emit xc_Name21Changed();
}

QString LG_ChooseDataManager::xc_Name22() const
{
    return m_xc_Name22;
}

void LG_ChooseDataManager::setXc_Name22(const QString &newXc_Name22)
{
    if (m_xc_Name22 == newXc_Name22)
        return;
    m_xc_Name22 = newXc_Name22;
    emit xc_Name22Changed();
}

QString LG_ChooseDataManager::xc_Name23() const
{
    return m_xc_Name23;
}

void LG_ChooseDataManager::setXc_Name23(const QString &newXc_Name23)
{
    if (m_xc_Name23 == newXc_Name23)
        return;
    m_xc_Name23 = newXc_Name23;
    emit xc_Name23Changed();
}

QString LG_ChooseDataManager::xc_Name24() const
{
    return m_xc_Name24;
}

void LG_ChooseDataManager::setXc_Name24(const QString &newXc_Name24)
{
    if (m_xc_Name24 == newXc_Name24)
        return;
    m_xc_Name24 = newXc_Name24;
    emit xc_Name24Changed();
}

QString LG_ChooseDataManager::xc_Name25() const
{
    return m_xc_Name25;
}

void LG_ChooseDataManager::setXc_Name25(const QString &newXc_Name25)
{
    if (m_xc_Name25 == newXc_Name25)
        return;
    m_xc_Name25 = newXc_Name25;
    emit xc_Name25Changed();
}

QString LG_ChooseDataManager::xc_Name26() const
{
    return m_xc_Name26;
}

void LG_ChooseDataManager::setXc_Name26(const QString &newXc_Name26)
{
    if (m_xc_Name26 == newXc_Name26)
        return;
    m_xc_Name26 = newXc_Name26;
    emit xc_Name26Changed();
}

QString LG_ChooseDataManager::xc_Name27() const
{
    return m_xc_Name27;
}

void LG_ChooseDataManager::setXc_Name27(const QString &newXc_Name27)
{
    if (m_xc_Name27 == newXc_Name27)
        return;
    m_xc_Name27 = newXc_Name27;
    emit xc_Name27Changed();
}

QString LG_ChooseDataManager::xc_Name28() const
{
    return m_xc_Name28;
}

void LG_ChooseDataManager::setXc_Name28(const QString &newXc_Name28)
{
    if (m_xc_Name28 == newXc_Name28)
        return;
    m_xc_Name28 = newXc_Name28;
    emit xc_Name28Changed();
}

QString LG_ChooseDataManager::xc_Name29() const
{
    return m_xc_Name29;
}

void LG_ChooseDataManager::setXc_Name29(const QString &newXc_Name29)
{
    if (m_xc_Name29 == newXc_Name29)
        return;
    m_xc_Name29 = newXc_Name29;
    emit xc_Name29Changed();
}

QString LG_ChooseDataManager::xc_Name30() const
{
    return m_xc_Name30;
}

void LG_ChooseDataManager::setXc_Name30(const QString &newXc_Name30)
{
    if (m_xc_Name30 == newXc_Name30)
        return;
    m_xc_Name30 = newXc_Name30;
    emit xc_Name30Changed();
}

QString LG_ChooseDataManager::xc_Name31() const
{
    return m_xc_Name31;
}

void LG_ChooseDataManager::setXc_Name31(const QString &newXc_Name31)
{
    if (m_xc_Name31 == newXc_Name31)
        return;
    m_xc_Name31 = newXc_Name31;
    emit xc_Name31Changed();
}

QString LG_ChooseDataManager::xc_Name32() const
{
    return m_xc_Name32;
}

void LG_ChooseDataManager::setXc_Name32(const QString &newXc_Name32)
{
    if (m_xc_Name32 == newXc_Name32)
        return;
    m_xc_Name32 = newXc_Name32;
    emit xc_Name32Changed();
}

QString LG_ChooseDataManager::xc_Name33() const
{
    return m_xc_Name33;
}

void LG_ChooseDataManager::setXc_Name33(const QString &newXc_Name33)
{
    if (m_xc_Name33 == newXc_Name33)
        return;
    m_xc_Name33 = newXc_Name33;
    emit xc_Name33Changed();
}

QString LG_ChooseDataManager::xc_Name34() const
{
    return m_xc_Name34;
}

void LG_ChooseDataManager::setXc_Name34(const QString &newXc_Name34)
{
    if (m_xc_Name34 == newXc_Name34)
        return;
    m_xc_Name34 = newXc_Name34;
    emit xc_Name34Changed();
}

QString LG_ChooseDataManager::xc_Name35() const
{
    return m_xc_Name35;
}

void LG_ChooseDataManager::setXc_Name35(const QString &newXc_Name35)
{
    if (m_xc_Name35 == newXc_Name35)
        return;
    m_xc_Name35 = newXc_Name35;
    emit xc_Name35Changed();
}

QString LG_ChooseDataManager::xc_Name36() const
{
    return m_xc_Name36;
}

void LG_ChooseDataManager::setXc_Name36(const QString &newXc_Name36)
{
    if (m_xc_Name36 == newXc_Name36)
        return;
    m_xc_Name36 = newXc_Name36;
    emit xc_Name36Changed();
}

QString LG_ChooseDataManager::xc_Name37() const
{
    return m_xc_Name37;
}

void LG_ChooseDataManager::setXc_Name37(const QString &newXc_Name37)
{
    if (m_xc_Name37 == newXc_Name37)
        return;
    m_xc_Name37 = newXc_Name37;
    emit xc_Name37Changed();
}

QString LG_ChooseDataManager::xc_Name38() const
{
    return m_xc_Name38;
}

void LG_ChooseDataManager::setXc_Name38(const QString &newXc_Name38)
{
    if (m_xc_Name38 == newXc_Name38)
        return;
    m_xc_Name38 = newXc_Name38;
    emit xc_Name38Changed();
}

QString LG_ChooseDataManager::xc_Name39() const
{
    return m_xc_Name39;
}

void LG_ChooseDataManager::setXc_Name39(const QString &newXc_Name39)
{
    if (m_xc_Name39 == newXc_Name39)
        return;
    m_xc_Name39 = newXc_Name39;
    emit xc_Name39Changed();
}

QString LG_ChooseDataManager::xc_Name40() const
{
    return m_xc_Name40;
}

void LG_ChooseDataManager::setXc_Name40(const QString &newXc_Name40)
{
    if (m_xc_Name40 == newXc_Name40)
        return;
    m_xc_Name40 = newXc_Name40;
    emit xc_Name40Changed();
}

QString LG_ChooseDataManager::xc_Height01() const
{
    return m_xc_Height01;
}

void LG_ChooseDataManager::setXc_Height01(const QString &newXc_Height01)
{
    if (m_xc_Height01 == newXc_Height01)
        return;
    m_xc_Height01 = newXc_Height01;
    emit xc_Height01Changed();
}

QString LG_ChooseDataManager::xc_Height02() const
{
    return m_xc_Height02;
}

void LG_ChooseDataManager::setXc_Height02(const QString &newXc_Height02)
{
    if (m_xc_Height02 == newXc_Height02)
        return;
    m_xc_Height02 = newXc_Height02;
    emit xc_Height02Changed();
}

QString LG_ChooseDataManager::xc_Height03() const
{
    return m_xc_Height03;
}

void LG_ChooseDataManager::setXc_Height03(const QString &newXc_Height03)
{
    if (m_xc_Height03 == newXc_Height03)
        return;
    m_xc_Height03 = newXc_Height03;
    emit xc_Height03Changed();
}

QString LG_ChooseDataManager::xc_Height04() const
{
    return m_xc_Height04;
}

void LG_ChooseDataManager::setXc_Height04(const QString &newXc_Height04)
{
    if (m_xc_Height04 == newXc_Height04)
        return;
    m_xc_Height04 = newXc_Height04;
    emit xc_Height04Changed();
}

QString LG_ChooseDataManager::xc_Height05() const
{
    return m_xc_Height05;
}

void LG_ChooseDataManager::setXc_Height05(const QString &newXc_Height05)
{
    if (m_xc_Height05 == newXc_Height05)
        return;
    m_xc_Height05 = newXc_Height05;
    emit xc_Height05Changed();
}

QString LG_ChooseDataManager::xc_Height06() const
{
    return m_xc_Height06;
}

void LG_ChooseDataManager::setXc_Height06(const QString &newXc_Height06)
{
    if (m_xc_Height06 == newXc_Height06)
        return;
    m_xc_Height06 = newXc_Height06;
    emit xc_Height06Changed();
}

QString LG_ChooseDataManager::xc_Height07() const
{
    return m_xc_Height07;
}

void LG_ChooseDataManager::setXc_Height07(const QString &newXc_Height07)
{
    if (m_xc_Height07 == newXc_Height07)
        return;
    m_xc_Height07 = newXc_Height07;
    emit xc_Height07Changed();
}

QString LG_ChooseDataManager::xc_Height08() const
{
    return m_xc_Height08;
}

void LG_ChooseDataManager::setXc_Height08(const QString &newXc_Height08)
{
    if (m_xc_Height08 == newXc_Height08)
        return;
    m_xc_Height08 = newXc_Height08;
    emit xc_Height08Changed();
}

QString LG_ChooseDataManager::xc_Height09() const
{
    return m_xc_Height09;
}

void LG_ChooseDataManager::setXc_Height09(const QString &newXc_Height09)
{
    if (m_xc_Height09 == newXc_Height09)
        return;
    m_xc_Height09 = newXc_Height09;
    emit xc_Height09Changed();
}

QString LG_ChooseDataManager::xc_Height10() const
{
    return m_xc_Height10;
}

void LG_ChooseDataManager::setXc_Height10(const QString &newXc_Height10)
{
    if (m_xc_Height10 == newXc_Height10)
        return;
    m_xc_Height10 = newXc_Height10;
    emit xc_Height10Changed();
}

QString LG_ChooseDataManager::xc_Height11() const
{
    return m_xc_Height11;
}

void LG_ChooseDataManager::setXc_Height11(const QString &newXc_Height11)
{
    if (m_xc_Height11 == newXc_Height11)
        return;
    m_xc_Height11 = newXc_Height11;
    emit xc_Height11Changed();
}

QString LG_ChooseDataManager::xc_Height12() const
{
    return m_xc_Height12;
}

void LG_ChooseDataManager::setXc_Height12(const QString &newXc_Height12)
{
    if (m_xc_Height12 == newXc_Height12)
        return;
    m_xc_Height12 = newXc_Height12;
    emit xc_Height12Changed();
}

QString LG_ChooseDataManager::xc_Height13() const
{
    return m_xc_Height13;
}

void LG_ChooseDataManager::setXc_Height13(const QString &newXc_Height13)
{
    if (m_xc_Height13 == newXc_Height13)
        return;
    m_xc_Height13 = newXc_Height13;
    emit xc_Height13Changed();
}

QString LG_ChooseDataManager::xc_Height14() const
{
    return m_xc_Height14;
}

void LG_ChooseDataManager::setXc_Height14(const QString &newXc_Height14)
{
    if (m_xc_Height14 == newXc_Height14)
        return;
    m_xc_Height14 = newXc_Height14;
    emit xc_Height14Changed();
}

QString LG_ChooseDataManager::xc_Height15() const
{
    return m_xc_Height15;
}

void LG_ChooseDataManager::setXc_Height15(const QString &newXc_Height15)
{
    if (m_xc_Height15 == newXc_Height15)
        return;
    m_xc_Height15 = newXc_Height15;
    emit xc_Height15Changed();
}

QString LG_ChooseDataManager::xc_Height16() const
{
    return m_xc_Height16;
}

void LG_ChooseDataManager::setXc_Height16(const QString &newXc_Height16)
{
    if (m_xc_Height16 == newXc_Height16)
        return;
    m_xc_Height16 = newXc_Height16;
    emit xc_Height16Changed();
}

QString LG_ChooseDataManager::xc_Height17() const
{
    return m_xc_Height17;
}

void LG_ChooseDataManager::setXc_Height17(const QString &newXc_Height17)
{
    if (m_xc_Height17 == newXc_Height17)
        return;
    m_xc_Height17 = newXc_Height17;
    emit xc_Height17Changed();
}

QString LG_ChooseDataManager::xc_Height18() const
{
    return m_xc_Height18;
}

void LG_ChooseDataManager::setXc_Height18(const QString &newXc_Height18)
{
    if (m_xc_Height18 == newXc_Height18)
        return;
    m_xc_Height18 = newXc_Height18;
    emit xc_Height18Changed();
}

QString LG_ChooseDataManager::xc_Height19() const
{
    return m_xc_Height19;
}

void LG_ChooseDataManager::setXc_Height19(const QString &newXc_Height19)
{
    if (m_xc_Height19 == newXc_Height19)
        return;
    m_xc_Height19 = newXc_Height19;
    emit xc_Height19Changed();
}

QString LG_ChooseDataManager::xc_Height20() const
{
    return m_xc_Height20;
}

void LG_ChooseDataManager::setXc_Height20(const QString &newXc_Height20)
{
    if (m_xc_Height20 == newXc_Height20)
        return;
    m_xc_Height20 = newXc_Height20;
    emit xc_Height20Changed();
}

QString LG_ChooseDataManager::xc_Height21() const
{
    return m_xc_Height21;
}

void LG_ChooseDataManager::setXc_Height21(const QString &newXc_Height21)
{
    if (m_xc_Height21 == newXc_Height21)
        return;
    m_xc_Height21 = newXc_Height21;
    emit xc_Height21Changed();
}

QString LG_ChooseDataManager::xc_Height22() const
{
    return m_xc_Height22;
}

void LG_ChooseDataManager::setXc_Height22(const QString &newXc_Height22)
{
    if (m_xc_Height22 == newXc_Height22)
        return;
    m_xc_Height22 = newXc_Height22;
    emit xc_Height22Changed();
}

QString LG_ChooseDataManager::xc_Height23() const
{
    return m_xc_Height23;
}

void LG_ChooseDataManager::setXc_Height23(const QString &newXc_Height23)
{
    if (m_xc_Height23 == newXc_Height23)
        return;
    m_xc_Height23 = newXc_Height23;
    emit xc_Height23Changed();
}

QString LG_ChooseDataManager::xc_Height24() const
{
    return m_xc_Height24;
}

void LG_ChooseDataManager::setXc_Height24(const QString &newXc_Height24)
{
    if (m_xc_Height24 == newXc_Height24)
        return;
    m_xc_Height24 = newXc_Height24;
    emit xc_Height24Changed();
}

QString LG_ChooseDataManager::xc_Height25() const
{
    return m_xc_Height25;
}

void LG_ChooseDataManager::setXc_Height25(const QString &newXc_Height25)
{
    if (m_xc_Height25 == newXc_Height25)
        return;
    m_xc_Height25 = newXc_Height25;
    emit xc_Height25Changed();
}

QString LG_ChooseDataManager::xc_Height26() const
{
    return m_xc_Height26;
}

void LG_ChooseDataManager::setXc_Height26(const QString &newXc_Height26)
{
    if (m_xc_Height26 == newXc_Height26)
        return;
    m_xc_Height26 = newXc_Height26;
    emit xc_Height26Changed();
}

QString LG_ChooseDataManager::xc_Height27() const
{
    return m_xc_Height27;
}

void LG_ChooseDataManager::setXc_Height27(const QString &newXc_Height27)
{
    if (m_xc_Height27 == newXc_Height27)
        return;
    m_xc_Height27 = newXc_Height27;
    emit xc_Height27Changed();
}

QString LG_ChooseDataManager::xc_Height28() const
{
    return m_xc_Height28;
}

void LG_ChooseDataManager::setXc_Height28(const QString &newXc_Height28)
{
    if (m_xc_Height28 == newXc_Height28)
        return;
    m_xc_Height28 = newXc_Height28;
    emit xc_Height28Changed();
}

QString LG_ChooseDataManager::xc_Height29() const
{
    return m_xc_Height29;
}

void LG_ChooseDataManager::setXc_Height29(const QString &newXc_Height29)
{
    if (m_xc_Height29 == newXc_Height29)
        return;
    m_xc_Height29 = newXc_Height29;
    emit xc_Height29Changed();
}

QString LG_ChooseDataManager::xc_Height30() const
{
    return m_xc_Height30;
}

void LG_ChooseDataManager::setXc_Height30(const QString &newXc_Height30)
{
    if (m_xc_Height30 == newXc_Height30)
        return;
    m_xc_Height30 = newXc_Height30;
    emit xc_Height30Changed();
}

QString LG_ChooseDataManager::xc_Height31() const
{
    return m_xc_Height31;
}

void LG_ChooseDataManager::setXc_Height31(const QString &newXc_Height31)
{
    if (m_xc_Height31 == newXc_Height31)
        return;
    m_xc_Height31 = newXc_Height31;
    emit xc_Height31Changed();
}

QString LG_ChooseDataManager::xc_Height32() const
{
    return m_xc_Height32;
}

void LG_ChooseDataManager::setXc_Height32(const QString &newXc_Height32)
{
    if (m_xc_Height32 == newXc_Height32)
        return;
    m_xc_Height32 = newXc_Height32;
    emit xc_Height32Changed();
}

QString LG_ChooseDataManager::xc_Height33() const
{
    return m_xc_Height33;
}

void LG_ChooseDataManager::setXc_Height33(const QString &newXc_Height33)
{
    if (m_xc_Height33 == newXc_Height33)
        return;
    m_xc_Height33 = newXc_Height33;
    emit xc_Height33Changed();
}

QString LG_ChooseDataManager::xc_Height34() const
{
    return m_xc_Height34;
}

void LG_ChooseDataManager::setXc_Height34(const QString &newXc_Height34)
{
    if (m_xc_Height34 == newXc_Height34)
        return;
    m_xc_Height34 = newXc_Height34;
    emit xc_Height34Changed();
}

QString LG_ChooseDataManager::xc_Height35() const
{
    return m_xc_Height35;
}

void LG_ChooseDataManager::setXc_Height35(const QString &newXc_Height35)
{
    if (m_xc_Height35 == newXc_Height35)
        return;
    m_xc_Height35 = newXc_Height35;
    emit xc_Height35Changed();
}

QString LG_ChooseDataManager::xc_Height36() const
{
    return m_xc_Height36;
}

void LG_ChooseDataManager::setXc_Height36(const QString &newXc_Height36)
{
    if (m_xc_Height36 == newXc_Height36)
        return;
    m_xc_Height36 = newXc_Height36;
    emit xc_Height36Changed();
}

QString LG_ChooseDataManager::xc_Height37() const
{
    return m_xc_Height37;
}

void LG_ChooseDataManager::setXc_Height37(const QString &newXc_Height37)
{
    if (m_xc_Height37 == newXc_Height37)
        return;
    m_xc_Height37 = newXc_Height37;
    emit xc_Height37Changed();
}

QString LG_ChooseDataManager::xc_Height38() const
{
    return m_xc_Height38;
}

void LG_ChooseDataManager::setXc_Height38(const QString &newXc_Height38)
{
    if (m_xc_Height38 == newXc_Height38)
        return;
    m_xc_Height38 = newXc_Height38;
    emit xc_Height38Changed();
}

QString LG_ChooseDataManager::xc_Height39() const
{
    return m_xc_Height39;
}

void LG_ChooseDataManager::setXc_Height39(const QString &newXc_Height39)
{
    if (m_xc_Height39 == newXc_Height39)
        return;
    m_xc_Height39 = newXc_Height39;
    emit xc_Height39Changed();
}

QString LG_ChooseDataManager::xc_Height40() const
{
    return m_xc_Height40;
}

void LG_ChooseDataManager::setXc_Height40(const QString &newXc_Height40)
{
    if (m_xc_Height40 == newXc_Height40)
        return;
    m_xc_Height40 = newXc_Height40;
    emit xc_Height40Changed();
}
